import { BaseService, Service } from '@/utils/request';
@Service('app-api/trade/order')
export default class extends BaseService {
    // 创建交易订单
    submit(data) {
        return this.request({
            url: '/submit',
            method: 'POST',
            data,
        });
    }
    // 团购验券兑换
    couponConsume(data) {
        return this.request({
            url: '/coupon-consume',
            method: 'POST',
            data,
        });
    }
    // 订单详情
    getDetail(params) {
        return this.request({
            url: '/get-detail',
            method: 'GET',
            params,
        });
    }
}
